<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ page language="java" contentType="text/html; charset=utf-8"
 import="com.neuede.dto.*,java.util.*, com.neuede.entity.Emp"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<style type="text/css">
table{
border: solid 1px #666;
border-collapse: collapse;
width: 700px;
}
tr,td,th{
border:solid 1px #666;
text-align: center;
}
div{
margin-top:20px;
width: 700px;
text-align: center; 
}
a{
text-decoration: none;
}
</style>
</head>
<body>

<table>

<tr>
<th>empno</th>
<th>ename</th>
<th>job</th>
<th>mgr</th>
<th>hiredate</th>
<th>sal</th>
<th>comm</th>
<th>deptno</th>
</tr>

<c:forEach items="${dto.list }"  var="emp">
<tr>
<td>${emp.empno }</td>
<td>${emp.ename }</td>
<td>${emp.job }</td>
<td>${emp.mgr }</td>
<td>${emp.hiredate }</td>
<td>${emp.sal }</td>
<td>${emp.comm }</td>
<td>${emp.deptno }</td>
</tr>
</c:forEach>

</table>

<div>
<a href="FenYeServlet?pageNum=1">首页</a> 
	<a href="FenYeServlet?pageNum=${dto.preNum }">上一页</a>
	        ${ dto.pageNum} /${dto.totalPage} 
	<a href="FenYeServlet?pageNum=${dto.nexNum }">下一页</a>
	<a href="FenYeServlet?pageNum=${dto.totalPage}">末页</a>
</div>
<h1>你好</h1>
</body>
</html>